import {createContext, useContext} from 'react';
import cart from './Cart';
import counter from './Counter';
class RootStore{
  cart=cart
  counter=counter
}
const store=new RootStore()
const context=createContext(store)
export default function useStore(){
  return useContext(context)
}